<?php
function mongofunc(){
	$aa=new MongoClient();
    $db=$aa->test;
    $collection=$db->col;
    $cursor=iterator_to_array($collection->find());
    return $cursor;
}